package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class UserOrders {
    private String orderid;
    private Double preferential;
    private Double freight;
    private String tel;
    private String receiver;
    private String address;
    private Date orderdate;
    private String status;
    private Integer type;
    private String userid;
    private String productorderid;
    private String productid;
    private String productname;
    private Double price;
    private Double deposit;
    private Integer count;
    private Integer lease;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startdate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date overdate;
    private String path;
    private String size;

    @Override
    public String toString() {
        return "UserOrders{" +
                "orderid='" + orderid + '\'' +
                ", preferential=" + preferential +
                ", freight=" + freight +
                ", tel='" + tel + '\'' +
                ", receiver='" + receiver + '\'' +
                ", address='" + address + '\'' +
                ", orderdate=" + orderdate +
                ", status='" + status + '\'' +
                ", type=" + type +
                ", userid='" + userid + '\'' +
                ", productorderid='" + productorderid + '\'' +
                ", productid='" + productid + '\'' +
                ", productname='" + productname + '\'' +
                ", price=" + price +
                ", deposit=" + deposit +
                ", count=" + count +
                ", lease=" + lease +
                ", startdate=" + startdate +
                ", overdate=" + overdate +
                ", path='" + path + '\'' +
                ", size='" + size + '\'' +
                '}';
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public Double getPreferential() {
        return preferential;
    }

    public void setPreferential(Double preferential) {
        this.preferential = preferential;
    }

    public Double getFreight() {
        return freight;
    }

    public void setFreight(Double freight) {
        this.freight = freight;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getOrderdate() {
        return orderdate;
    }

    public void setOrderdate(Date orderdate) {
        this.orderdate = orderdate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getProductorderid() {
        return productorderid;
    }

    public void setProductorderid(String productorderid) {
        this.productorderid = productorderid;
    }

    public String getProductid() {
        return productid;
    }

    public void setProductid(String productid) {
        this.productid = productid;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getDeposit() {
        return deposit;
    }

    public void setDeposit(Double deposit) {
        this.deposit = deposit;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getLease() {
        return lease;
    }

    public void setLease(Integer lease) {
        this.lease = lease;
    }

    public Date getStartdate() {
        return startdate;
    }

    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }

    public Date getOverdate() {
        return overdate;
    }

    public void setOverdate(Date overdate) {
        this.overdate = overdate;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public UserOrders() {
    }

    public UserOrders(String orderid, Double preferential, Double freight, String tel, String receiver, String address, Date orderdate, String status, Integer type, String userid, String productorderid, String productid, String productname, Double price, Double deposit, Integer count, Integer lease, Date startdate, Date overdate, String path, String size) {
        this.orderid = orderid;
        this.preferential = preferential;
        this.freight = freight;
        this.tel = tel;
        this.receiver = receiver;
        this.address = address;
        this.orderdate = orderdate;
        this.status = status;
        this.type = type;
        this.userid = userid;
        this.productorderid = productorderid;
        this.productid = productid;
        this.productname = productname;
        this.price = price;
        this.deposit = deposit;
        this.count = count;
        this.lease = lease;
        this.startdate = startdate;
        this.overdate = overdate;
        this.path = path;
        this.size = size;
    }
}
